package com.cpe.data.domain.student.physique;

import org.apache.commons.lang3.StringUtils;

import com.sql.data.request.BaseForm;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class StudentPhysiqueForm extends BaseForm {
	private static final long serialVersionUID = -5704611180920587408L;

	private String studentId;

	private String physiqueName;

	private Float score;

	// 成绩录入的日期，只记录日期
	private String scoreDate;

	@Override
	public boolean stopCreate() {
		return StringUtils.isAnyBlank(studentId, physiqueName, scoreDate) || score == null;
	}

	@Override
	public boolean stopUpdate() {
		return score == null;
	}
}
